﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KPIS.GERP.SERVICE.Demo.Classes;

namespace KPIS.GERP.SERVICE.Demo.Ekk.MySampleFlow.UserControls
{
    public partial class UserNameBlock : System.Web.UI.UserControl
    {
        public string Mode { get { return string.IsNullOrWhiteSpace(Request["mode"]) ? "vs" : Request["mode"]; } }
        protected void Page_Load(object sender, EventArgs e)
        {
            var keyUserDetail = new SsMng() { IncludePortNumberInKey = true }.KeyWithPort("UserDetail");
            var keyKey = new SsMng() { IncludePortNumberInKey = true }.KeyWithPort("EmpSeq");
            if (Request.Cookies[keyUserDetail] != null && Request.Cookies[keyUserDetail][keyKey] != null)
            {
                userName.Text = new SsMng().UserFullName;
            }
        }
         
    }
}